//
//  UIView+ConvenienceExtension.swift
//  swift-新浪微博0
//
//  Created by 赵玉忠 on 16/8/30.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

extension UILabel{
    convenience init(textColor:UIColor,fontSize:CGFloat){
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFont(ofSize: fontSize)
    }
}

extension UIButton{
    convenience init(textColor:UIColor,fontSize:CGFloat){
        self.init()
        self.setTitleColor(textColor, for: UIControlState.normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    }
}
